package com.rock.code.datacollconfig.business.service.impl;


import com.rock.code.datacollconfig.business.dao.TbCollConfBusiDao;
import com.rock.code.datacollconfig.business.domain.TbCollConfBusi;
import com.rock.code.datacollconfig.business.service.TbCollConfBusiService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author piandu
 * @description Service实现
 * @date 2018/9/14 16/34
 */
@Service
public class TbCollConfBusiServiceImpl implements TbCollConfBusiService {

    @Resource
    private TbCollConfBusiDao tbCollConfBusiDao;


    @Override
    public  List<TbCollConfBusi> getAllCollBusiConf(Map map) {
        if(map!=null&&!map.isEmpty()){
            return tbCollConfBusiDao.getAllCollBusiConf(map);
        }
        return null;
    }

    @Override
    public TbCollConfBusi getAllCollBusiConfById(String id) {
        return  tbCollConfBusiDao.getAllCollBusiConfById(id);
    }
}